package com.example.service.hello;

import com.example.config.HelloConfiguration;

/**
 * @author yuanzheng
 * @date 2020/7/26-18:11
 */
public class HelloService {
    HelloConfiguration helloProperties;

    public HelloConfiguration getHelloProperties() {
        return helloProperties;
    }

    public void setHelloProperties(HelloConfiguration helloProperties) {
        this.helloProperties = helloProperties;
    }

    public String sayHello(String name){
        return helloProperties.getPrefix() + name + helloProperties.getSuffix();
    }
}
